///<reference path="../../lib/player.d.ts"/>
window.onload = () =>
{
    console.log("helloworld.");
    var nsf: NSF | null = null;
    {
        var btn = window.document.createElement("button");
        window.document.body.appendChild(btn);
        btn.textContent = "Play 001"
        btn.onclick = (s) =>
        {
            if (nsf == null) nsf = new NSF();

            nsf.load("./nsf/2.nsf");
        };
    }
    {
        var btn = window.document.createElement("button");
        window.document.body.appendChild(btn);
        btn.textContent = "Play 002"
        btn.onclick = (s) =>
        {
            if (nsf == null) nsf = new NSF();

            nsf.load("./nsf/1.nsf.bin");
        };
    }

}